/**************************************************************************/
/*  Copyright (C) School of Software Engineering of USTC, 2012            
/*                                                                        
/*  FILE NAME: common.h                                                    
/*  PRINCIPAL AUTHOR: SA12226114(Xin Zhu), SA12226139(Dan Shu)            
/*  SUBSYSTEM NAME:                                                     
/*  MODULE NAME: common                                                    
/*  LANGUAGE: C                                                           
/*  TARGET ENVIRONMENT: Linux                                             
/*  DATE OF FIRST RELEASE: 2012-11-20                                     
/*  DESCRIPTION: Impement of Abstract Interface for Tokyo Cabinet DB API  
/**************************************************************************/


#ifndef COMMON_H
#define COMMON_H

/* standards system header file */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>


/* linux system header file */
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>  
#include <sys/epoll.h>
#include <fcntl.h>
#include <unistd.h>
#include <netdb.h>
#include <assert.h>



  
/* semaphore header file */
#include<semaphore.h>

/* pthread header file */
#include <pthread.h>




#define LILY_TRUE 1
#define LILY_FALSE 0

#define CMDLINE_LEN 200
#define KEY_LEN 70
#define VALUE_LEN 100
#define CMD_LEN 30


#define MAXLINE 4096


typedef int LILY_BOOLEAN;

#endif


